package com.liuguang.testassert.filter;

import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.websocket.server.WsFilter;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.web.filter.DelegatingFilterProxy;
import org.springframework.web.filter.FormContentFilter;
import org.springframework.web.filter.OncePerRequestFilter;
import org.springframework.web.filter.RequestContextFilter;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName: TestFilter2
 * @Description：
 * @Author: wanghr
 * Date: 9:21 AM 2020/6/9
 * Version: 1.0
 */
@Slf4j
@WebFilter(urlPatterns = "/*")
public class TestFilter2 extends OncePerRequestFilter {
    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
        logger.info("进入text 过滤器！！！！！");
        filterChain.doFilter(request,response);
    }
}
